#!/bin/bash

# Build contingent-ff planner first
# find if the program 'cont_ff' is at '/usr/local/bin/cont_ff'
if [ -f /usr/local/bin/cont_ff ]; then
    echo 'cont_ff is already installed at /usr/local/bin/cont_ff'
else
    echo 'cont_ff is not installed at /usr/local/bin/cont_ff'
    echo 'Building cont_ff from source'
    cd cont_ff_planner/src
    make && make clean
    cd ../..
fi

# Build the rest of the program
mkdir -p build
cd build
cmake ..
make

